{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "2888ea1c",
   "metadata": {},
   "source": [
    "## 图片抓取：simple Desktops"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "d14a2402",
   "metadata": {},
   "outputs": [],
   "source": [
    "from requests_html import HTMLSession\n",
    "\n",
    "session = HTMLSession()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "cfa7975e",
   "metadata": {},
   "outputs": [],
   "source": [
    "r = session.get('http://simpledesktops.com/browse/')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "8190b49d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "200"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.status_code"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "05b7d893",
   "metadata": {},
   "outputs": [],
   "source": [
    "items_img = r.html.find('div.desktop > a > img')\n",
    "\n",
    "#保存图片到bg/目录\n",
    "def save_image(url,title):\n",
    "    img_response = requests.get(url)\n",
    "    print(img_response.content)\n",
    "    with open('img/'+title+'.png','wb') as file:\n",
    "        file.write(img_response.content)\n",
    "\n",
    "\n",
    "for item in items_img:\n",
    "    title = item.attrs['title']\n",
    "    img_url = item.attrs['src']\n",
    "    save_image(img_url,title)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "371156d9",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'http://static.simpledesktops.com/uploads/desktops/2022/09/15/V3_Loading_Wallpaper_1.1.png.295x184_q100.png'"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "items_img[0].attrs['src']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "5ad6550e",
   "metadata": {},
   "outputs": [],
   "source": [
    "r = session.get('https://gz.lianjia.com/ershoufang/tianhe')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "id": "4ce12bed",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "200"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.status_code"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "id": "04944b6f",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "信华花园 安静西南向三居已改四居必看好房\n",
      "信华经理人家园 - 华景新城\n",
      "4室2厅 | 108.89平米 | 西南 | 精装 | 低楼层(共31层) | 2012年建 | 塔楼\n",
      "1人关注 / 5天以前发布\n",
      "VR房源房本满五年随时看房\n",
      "835万\n",
      "76,683元/平\n",
      "珠江俊园 带100平台花园 业主精装修 天河公园旁边，必看好房\n",
      "珠江俊园 - 华景新城\n",
      "3室1厅 | 122.53平米 | 东南 | 精装 | 低楼层(共28层) | 2007年建 | 塔楼\n",
      "0人关注 / 6天以前发布\n",
      "VR房源房本满五年\n",
      "1235万\n",
      "100,792元/平\n",
      "珠江新城 东向安静户型 视野开阔 满五年 有K随时看房\n",
      "尚东美御 - 珠江新城东\n",
      "3室2厅 | 140.36平米 | 东 | 精装 | 低楼层(共32层) | 2007年建 | 塔楼\n",
      "2人关注 / 6天以前发布\n",
      "近地铁VR看装修房本满五年随时看房\n",
      "1550万\n",
      "110,431元/平\n",
      "珠江新城北 实用三房 双阳台 通风采光很好 近地铁必看好房\n",
      "六运小区 - 天河南\n",
      "3室2厅 | 80.17平米 | 东 西 | 精装 | 中楼层(共8层) | 1993年建 | 塔楼\n",
      "0人关注 / 5天以前发布\n",
      "近地铁VR看装修房本满五年随时看房\n",
      "490万\n",
      "61,121元/平\n",
      "天朗明居 东南向两房望泳池 满五年 看房有钥匙必看好房\n",
      "富力天朗明居 - 棠下\n",
      "2室2厅 | 57.92平米 | 东 | 简装 | 中楼层(共20层) | 2004年建 | 塔楼\n",
      "0人关注 / 3天以前发布\n",
      "近地铁VR看装修房本满五年随时看房\n",
      "358万\n",
      "61,810元/平\n",
      "新上房源 天河北苑 温馨电梯高层两房 交通方便 满五年必看好房\n",
      "天河北苑 - 沙太南\n",
      "2室1厅 | 66.65平米 | 西 | 简装 | 中楼层(共11层) | 2004年建 | 塔楼\n",
      "1人关注 / 7天以前发布\n",
      "近地铁VR看装修房本满五年随时看房\n",
      "256万\n",
      "38,410元/平\n",
      "公园门口安静三房，满五唯一，高层采光通风好必看好房\n",
      "东晖花园 - 天河公园\n",
      "3室2厅 | 91.27平米 | 北 | 精装 | 高楼层(共9层) | 1999年建 | 塔楼\n",
      "2人关注 / 3天以前发布\n",
      "近地铁VR看装修房本满两年随时看房\n",
      "720万\n",
      "78,887元/平\n",
      "户型方正 南北对流 难得一遇好房 业主诚心卖！必看好房\n",
      "昌乐园 - 员村\n",
      "2室1厅 | 58.93平米 | 南 北 | 简装 | 高楼层(共6层) | 1994年建 | 板楼\n",
      "0人关注 / 6天以前发布\n",
      "近地铁VR看装修房本满五年随时看房\n",
      "268万\n",
      "45,478元/平\n",
      "岗顶地铁口 生活配套设施齐全 采光通风好 户型方正\n",
      "中山三院宿舍 - 石牌\n",
      "2室1厅 | 67.06平米 | 南 | 简装 | 中楼层(共9层) | 1990年建 | 塔楼\n",
      "0人关注 / 5天以前发布\n",
      "近地铁VR房源房本满五年随时看房\n",
      "325万\n",
      "48,465元/平\n",
      "格局实用通透，南向安静望花园，采光敞亮无遮挡，舒适必看好房\n",
      "粤海丽江花园 - 珠江新城东\n",
      "4室2厅 | 197.4平米 | 东南 | 简装 | 中楼层(共23层) | 2009年建 | 塔楼\n",
      "2人关注 / 17天以前发布\n",
      "近地铁VR看装修房本满五年随时看房\n",
      "2600万\n",
      "131,713元/平\n",
      "骏景花园 南向复式三层双天台 高层视野开阔 采光充足\n",
      "骏景花园 - 棠下\n",
      "5室3厅 | 230.3平米 | 南 | 简装 | 高楼层(共12层) | 2000年建 | 塔楼\n",
      "1人关注 / 25天以前发布\n",
      "VR房源房本满五年随时看房\n",
      "1399万\n",
      "60,747元/平\n",
      "华润天合高层三房南向视野无遮挡，看房方便必看好房\n",
      "华润天合 - 黄村\n",
      "3室1厅 | 88.16平米 | 南 | 精装 | 中楼层(共33层) | 2016年建 | 塔楼\n",
      "2人关注 / 15天以前发布\n",
      "VR看装修房本满两年随时看房\n",
      "730万\n",
      "82,804元/平\n",
      "南苑单边位4房，装修保养好，行过路过不好错过\n",
      "骏景花园 - 棠下\n",
      "4室2厅 | 153.03平米 | 北 | 简装 | 低楼层(共13层) | 2003年建 | 塔楼\n",
      "0人关注 / 15天以前发布\n",
      "近地铁VR看装修房本满五年\n",
      "898万\n",
      "58,682元/平\n",
      "云龙苑 全小区就一套 精装大四房 手快有必看好房\n",
      "云龙苑 - 沙河\n",
      "4室1厅 | 81.46平米 | 南 | 精装 | 中楼层(共6层) | 1999年建 | 塔楼\n",
      "0人关注 / 10天以前发布\n",
      "VR房源房本满五年\n",
      "350万\n",
      "42,966元/平\n",
      "高层看天然大氧吧，无遮挡，诚意出，4+1房置换先选\n",
      "中海观园国际 - 珠江新城东\n",
      "4室1厅 | 247.38平米 | 南 | 精装 | 高楼层(共43层) | 2007年建 | 板楼\n",
      "1人关注 / 13天以前发布\n",
      "近地铁VR看装修房本满五年\n",
      "4180万\n",
      "168,971元/平\n",
      "保利心语花园 2室1厅 北 东北必看好房\n",
      "保利心语花园 - 珠江新城中\n",
      "2室1厅 | 81平米 | 北 东北 | 精装 | 低楼层(共32层) | 2009年建 | 板塔结合\n",
      "0人关注 / 16天以前发布\n",
      "近地铁VR看装修房本满五年随时看房\n",
      "1080万\n",
      "133,334元/平\n",
      "天河上车两房 总Jia低 东南向 满五唯一 产权清晰必看好房\n",
      "天健上城 - 车陂\n",
      "2室2厅 | 61.33平米 | 东南 | 精装 | 中楼层(共14层) | 2016年建 | 塔楼\n",
      "5人关注 / 15天以前发布\n",
      "VR看装修房本满两年随时看房\n",
      "366万\n",
      "59,678元/平\n",
      "汇友苑 配套成熟 户型方正 看房方便必看好房\n",
      "汇友苑 - 东圃\n",
      "2室1厅 | 57.78平米 | 东 | 简装 | 中楼层(共19层) | 2002年建 | 塔楼\n",
      "0人关注 / 11天以前发布\n",
      "近地铁VR看装修房本满五年随时看房\n",
      "300万\n",
      "51,922元/平\n",
      "广本宿舍 2室2厅 南必看好房\n",
      "广本宿舍 - 石牌\n",
      "2室2厅 | 36.06平米 | 南 | 其他 | 中楼层(共9层) | 1993年建 | 塔楼\n",
      "2人关注 / 16天以前发布\n",
      "VR看装修房本满五年随时看房\n",
      "165万\n",
      "45,758元/平\n",
      "体育西苑 景观两房 鸟语花香 望泳池必看好房\n",
      "体育西苑 - 体育中心\n",
      "2室1厅 | 75.47平米 | 东 北 | 精装 | 低楼层(共38层) | 板塔结合\n",
      "0人关注 / 13天以前发布\n",
      "近地铁VR房源房本满五年随时看房\n",
      "560万\n",
      "74,202元/平\n",
      "天誉花园 中层南向 三房两卫 户型方正必看好房\n",
      "天誉花园 - 林和\n",
      "3室1厅 | 109.97平米 | 南 | 精装 | 中楼层(共31层) | 2000年建 | 板塔结合\n",
      "8人关注 / 10天以前发布\n",
      "近地铁VR看装修房本满五年随时看房\n",
      "880万\n",
      "80,022元/平\n",
      "三个房间加阳台全部纯正南、全南户型必看好房\n",
      "南国花园 - 珠江新城东\n",
      "3室2厅 | 133.53平米 | 南 | 精装 | 低楼层(共24层) | 2005年建 | 塔楼\n",
      "224人关注 / 11天以前发布\n",
      "近地铁VR看装修房本满五年随时看房\n",
      "1698万\n",
      "127,163元/平\n",
      "财政局宿舍正南向大3房 阳光好 居住舒适必看好房\n",
      "财政局宿舍 - 天河公园\n",
      "3室2厅 | 100.46平米 | 南 | 精装 | 中楼层(共10层) | 2005年建 | 塔楼\n",
      "3人关注 / 13天以前发布\n",
      "近地铁VR看装修房本满五年随时看房\n",
      "410万\n",
      "40,813元/平\n",
      "六运小区 有电梯 精装修 户型方正 太阳好 带家私家电必看好房\n",
      "六运小区 - 天河南\n",
      "1室1厅 | 43.63平米 | 西 | 精装 | 高楼层(共9层) | 1992年建 | 塔楼\n",
      "1人关注 / 7天以前发布\n",
      "近地铁VR看装修房本满五年随时看房\n",
      "316万\n",
      "72,428元/平\n",
      "后天河北 燕塘地铁200米 少放私家.院子两房 独立入户必看好房\n",
      "新燕花园 - 燕塘\n",
      "2室1厅 | 72.83平米 | 北 西 | 简装 | 9层 | 2004年建 | 塔楼\n",
      "0人关注 / 5天以前发布\n",
      "近地铁VR看装修房本满五年随时看房\n",
      "375万\n",
      "51,490元/平\n",
      "中海璟晖华庭 央企品质 东向看公园，视野无挡大四房必看好房\n",
      "中海璟晖华庭 - 珠江新城中\n",
      "4室1厅 | 206.22平米 | 东 | 精装 | 低楼层(共31层) | 2009年建 | 塔楼\n",
      "1人关注 / 14天以前发布\n",
      "近地铁VR看装修房本满两年随时看房\n",
      "2700万\n",
      "130,929元/平\n",
      "体育西电梯三房 一梯两户 南北对流 近地铁必看好房\n",
      "广利路 - 天河南\n",
      "3室1厅 | 89.69平米 | 南 北 | 精装 | 中楼层(共9层) | 板楼\n",
      "0人关注 / 11天以前发布\n",
      "近地铁VR看装修房本满五年随时看房\n",
      "460万\n",
      "51,288元/平\n",
      "一手业主回香港居住 安静 西南向无遮挡 视野开阔\n",
      "华景新城怡华台 - 华景新城\n",
      "2室2厅 | 75.44平米 | 南 西南 | 精装 | 中楼层(共17层) | 1999年建 | 塔楼\n",
      "0人关注 / 11天以前发布\n",
      "VR看装修房本满五年随时看房\n",
      "524万\n",
      "69,460元/平\n",
      "天誉花园 居住舒适 南向新装修大三房 视野开阔必看好房\n",
      "天誉花园 - 林和\n",
      "3室1厅 | 150.39平米 | 南 | 精装 | 中楼层(共31层) | 2000年建 | 板塔结合\n",
      "1人关注 / 10天以前发布\n",
      "近地铁VR看装修房本满五年随时看房\n",
      "1150万\n",
      "76,468元/平\n",
      "安静看花园三房，通风采光好，装修保养好\n",
      "都市兰亭花园 - 员村\n",
      "3室2厅 | 93.64平米 | 东南 | 精装 | 低楼层(共19层) | 2002年建 | 塔楼\n",
      "52人关注 / 8天以前发布\n",
      "近地铁VR房源房本满五年随时看房\n",
      "708万\n",
      "75,609元/平\n"
     ]
    }
   ],
   "source": [
    "ershoufang_items = r.html.find('div.info.clear')\n",
    "for item in ershoufang_items:\n",
    "    print(item.text)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "752667f5",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[<Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_s8O0empp5_1.jpg.296x216.jpg' alt='广州天河华景新城'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_AoUXXuaNh_1.jpg.296x216.jpg' alt='广州天河华景新城'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/47827c75-d98c-4f4d-ad95-555ab0abbb6d_1000.jpg.296x216.jpg' alt='广州天河珠江新城东'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_KYTWPVNxe_1.jpg.296x216.jpg' alt='广州天河天河南'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_eL729SyC9_1.jpg.296x216.jpg' alt='广州天河棠下'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_wNiy4D5Rh.jpg.296x216.jpg' alt='广州天河沙太南'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_bNF746AJg_1.jpg.296x216.jpg' alt='广州天河天河公园'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_djfEwmBP5_1.jpg.296x216.jpg' alt='广州天河员村'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_vOaV3sAK1_1.jpg.296x216.jpg' alt='广州天河石牌'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/56d849a5-3ce8-44c1-b800-17907f5b630e_1000.jpg.296x216.jpg' alt='广州天河珠江新城东'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_fVIrRdepF.jpg.296x216.jpg' alt='广州天河棠下'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_GzkHqhfOu_1.jpg.296x216.jpg' alt='广州天河黄村'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_VrhlsqNRe.jpg.296x216.jpg' alt='广州天河棠下'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_56BtAQIUr_1.jpg.296x216.jpg' alt='广州天河沙河'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/a3f3485e-d08b-4267-add9-12b21fc39afd_1000.jpg.296x216.jpg' alt='广州天河珠江新城东'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_WOxYgQZG6_1.jpg.296x216.jpg' alt='广州天河珠江新城中'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_VZP9I7e5J_1.jpg.296x216.jpg' alt='广州天河车陂'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_sQns7FVtU.jpg.296x216.jpg' alt='广州天河东圃'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_VPYkNqWVU_1.jpg.296x216.jpg' alt='广州天河石牌'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_W0VqupP7c_1.jpg.296x216.jpg' alt='广州天河体育中心'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_9C6IM7ydR.jpg.296x216.jpg' alt='广州天河林和'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_GF10H603S.jpg.296x216.jpg' alt='广州天河珠江新城东'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_pJiDbTjlv_1.jpg.296x216.jpg' alt='广州天河天河公园'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_uLcMmMDow_1.jpg.296x216.jpg' alt='广州天河天河南'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_05vdEk3W3.jpg.296x216.jpg' alt='广州天河燕塘'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/80daeceb-a73c-4b85-a577-85d0e604cdb0_1000.jpg.296x216.jpg' alt='广州天河珠江新城中'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_EVbJES7wk_1.jpg.296x216.jpg' alt='广州天河天河南'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_IvblYpSjc.jpg.296x216.jpg' alt='广州天河华景新城'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_5AgfsOVnJ.jpg.296x216.jpg' alt='广州天河林和'>,\n",
       " <Element 'img' class=('lj-lazy',) src='https://s1.ljcdn.com/feroot/pc/asset/img/blank.gif?_v=20230302112103216' data-original='https://image1.ljcdn.com/110000-inspection/pc1_Xdfb5pnhg.jpg.296x216.jpg' alt='广州天河员村'>]"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "img_items = r.html.find('img.lj-lazy')\n",
    "img_items"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "745aa411",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
